package org.ccay.core.server.impl;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Named;

import org.ccay.core.server.IServerListService;
import org.ccay.core.server.ServerInfoVO;

@Named
public class ServerListService implements IServerListService{

	@Override
	public List<ServerInfoVO> findServerList() {
		List<ServerInfoVO> infos = new ArrayList<ServerInfoVO>();
		
		ServerInfoVO serverInfo1 = new ServerInfoVO();
		serverInfo1.setServerNameHashcode("mylocalhost".hashCode());
		serverInfo1.setServerName("mylocalhost");
		serverInfo1.setServerDomainName("localhost");
		serverInfo1.setServerUrl("localhost:8081/demo/");
		serverInfo1.setAppPort(8081);
		infos.add(serverInfo1);
		
		ServerInfoVO serverInfo2 = new ServerInfoVO();
		serverInfo2.setServerNameHashcode("mylocalhost2".hashCode());
		serverInfo2.setServerName("mylocalhostw");
		serverInfo2.setServerDomainName("localhost2");
		serverInfo2.setServerUrl("localhost:8082/demo/");
		serverInfo2.setAppPort(8082);
		infos.add(serverInfo2);
		
		return infos;
	}

}
